package csproj.fencing;

public class Move implements Piece {
	public int PieceRow;
	public int PieceCol;
	public int P;
	public boolean HasPiece;
	public int BarrierRow;
	public int BarrierCol;
	public boolean HasBarrier;
	public int Direction;
	
	public Move()
	{
		PieceRow = -1;
		PieceCol = -1;
		P = EMPTY;
		HasPiece = false;
		BarrierRow = -1;
		BarrierCol = -1;
		HasBarrier = false;
		Direction = 0;
		
		
	}
	public Move(int r, int c, int player, boolean hp, int br, int bc, boolean hb, int d)
	{
		PieceRow = r;
		PieceCol = c;
		P = player;
		HasPiece = hp;
		BarrierRow = br;
		BarrierCol = bc;
		HasBarrier = hb;
		Direction = d;
		
	}

    public String print () {
        String s = "";
        if(HasPiece) s+="BoardPiece:  " + PieceRow +", " + PieceCol + ", " + P + "\n";
        if (HasBarrier) s+= "Barrier:  "+BarrierRow+", "+BarrierCol+", "+Direction + "\n";
        return s;
    }
	
}